package com.newear.marathon.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.newear.marathon.dto.admin.inquiry.AdminUserInquiryPageRequestDTO;
import com.newear.marathon.dto.admin.inquiry.AdminUserInquiryPageResponseSubDTO;
import com.newear.marathon.entity.admin.AdminUser;
import com.newear.marathon.vo.LeftMenuListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminUserMapper extends BaseMapper<AdminUser>
{
    List<AdminUserInquiryPageResponseSubDTO> queryUserPage(@Param("page") Page<AdminUserInquiryPageResponseSubDTO> page,
                                                                      @Param("requestDTO") AdminUserInquiryPageRequestDTO requestDTO);

    List<LeftMenuListVO> queryLeftMenu(String username);

    List<String> queryPermissions(String username);
}
